﻿/*
 * Сделано в SharpDevelop.
 * Пользователь: Кулик
 * Дата: 01.04.2011
 * Время: 15:16
 * 
 * Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков.
 */
using System;
using System.Collections.Generic;

namespace Video.Mov
{
	/// <summary>
	/// moov
	/// </summary>
	public class MovieAtom: Atom{
		//public MovieHeaderAtom movieHeaderAtom;
		//public ClippingAtom clippingAtom;
		public List<Atom> track;
		//public UserDataAtom userDataAtom;
		//public ColorTableAtom colorTableAtom;
	}
	
	/// <summary>
	/// mvhd
	/// </summary>
	public class MovieHeaderAtom: Atom{
		
		public MovieHeaderAtom(Atom atom){
			base.Size = atom.Size;
			base.Type = atom.Type;
		}
		
		public uint CreationTime;
		public uint ModificationTime;
		public uint TimeScale;
		public uint Duration;
		public uint PreferredRate;
		public ushort PreferredVolume;
		public byte[] Reserved = new byte[10];
		public byte[] MatrixStructure = new byte[36];
		public uint PreviewTime;
		public uint PreviewDuration;
		public uint PosterTime;
		public uint SelectionTime;
		public uint SelectionDuration;
		public uint CurrentTime;
		public uint NextTrackID;
	}
	
//	/// <summary>
//	/// clip
//	/// </summary>
//	public struct ClippingAtom:Atom{
//		public ClippingRegionAtom clippingRegionAtom;
//	}
	
	/// <summary>
	/// crgn
	/// </summary>
	public class ClippingRegionAtom:Atom{
		public short RegionSize;
		public double RegionBonduaryBox;
		public object ClippingRegionData;
	}
	
	
}
